package com.chang.demo.bean;

import lombok.Data;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;

@Data
public class TsServiceMethodBean {
    private String name;
    private RequestMethod requestMethod;
    private String requestUrl;
    private ArrayList<RequestParamBean> requestParamList = new ArrayList<>();
    private ArrayList<String> pathParamList = new ArrayList<>();
    private Class requestBodyType;
    private Class returnType;

    public void addParam (RequestParamBean requestParamBean) {
        this.requestParamList.add(requestParamBean);
    }

    public void addPathParam (String paramName) {
        this.pathParamList.add(paramName);
    }

}
